package com.xdf.zipperdye.service;

import com.xdf.zipperdye.dao.business.OrderDetailMapper;
import com.xdf.zipperdye.model.OrderDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {
    @Autowired
    private OrderDetailMapper dao;
    @Override
    public int deleteByPrimaryKey(Integer iid) {
        return dao.deleteByPrimaryKey(iid);
    }

    @Override
    public int insert(OrderDetail record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(OrderDetail record) {
        return dao.insertSelective(record);
    }

    @Override
    public OrderDetail selectByPrimaryKey(Integer iid) {
        return dao.selectByPrimaryKey(iid);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderDetail record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderDetail record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public List<OrderDetail> selectByPid(Integer parentId) {
        return dao.selectByPid(parentId);
    }

    @Override
    public int multiInsert(List<OrderDetail> records) {
        return dao.multiInsert(records);
    }

    @Override
    public int multiUpdate(List<OrderDetail> records) {
        return dao.multiUpdate(records);
    }

    @Override
    public List<OrderDetail> getOrderDetail8PidState(Integer parentId, Integer state) {
        return dao.getOrderDetail8PidState(parentId, state);
    }

    @Override
    public int deleteByPid(Integer parentId) {
        return dao.deleteByPid(parentId);
    }

    @Override
    public int multiSave(List<OrderDetail> records) {
        return dao.multiSave(records);
    }
}
